package com.csdj.t301.cloud.entity;

import com.csdj.t301.cloud.annotation.Validator;

/**
 * author:cloud
 * date:2021/1/21 0021
 **/
public class Student {

    public Student () {
    }

    private String name;
    @Validator(max = 150,min = 0)
    private int age;

    public String sing(String some){
        System.out.println("my name is:"
                +this.name+" age is:"+this.age);
        return some;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}
